package com.mgr.test;

import org.easetech.easytest.annotation.DataLoader;
import org.easetech.easytest.annotation.Param;
import org.easetech.easytest.runner.DataDrivenTestRunner;
import org.junit.Test;
import org.junit.runner.RunWith;

/**
 */
@RunWith(DataDrivenTestRunner.class)
@DataLoader(filePaths = { "csvBasedData.csv" })
public class EasyTestCsvExample {


	@Test
	public void testSimpleCase() {
		System.out.println("This is a simple test");
	}

	/**
	 * Method testCaseWithOneParameter.
	 * @param itemId int
	 */
	@Test
	public void testCaseWithOneParameter(@Param(name = "itemId") int itemId) {

		System.out.println("testSimpleCaseWithOneParameter : " + itemId);
		//Assert.assertEquals(12, itemId);

	}

	/**
	 * Method testCaseWithTwoParameter.
	 * @param itemId int
	 * @param itemType String
	 */
	@Test
	public void testCaseWithTwoParameter(@Param(name = "itemId") int itemId,
			@Param(name = "itemType") String itemType) {
		System.out.println("testSimpleCaseWithTwoParameter : " + itemId
				+ " and itemType :" + itemType);

	}
}
